#ifndef _LGH_RM3100_HPP
#define _LGH_RM3100_HPP
#include "main.hpp"

extern short int MagX,MagY,MagZ;
extern float MagYaw;
void MagSetUp(void);
char CheckMagDataReady(void);
void MagGetData(void);
void SPIWriteRegister(uint8 cmd, uint8 val);
void SPIReadRegister(uint8 * val, uint8 num);

void GetMagYaw(void);
#endif
